package org.dromara.bean.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.bean.domain.HisActivity;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 活动视图对象 his_activity
 *
 * @author Lion Li
 * @date 2025-01-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HisActivity.class)
public class HisActivityVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 封面图
     */
    @ExcelProperty(value = "封面图")
    private String photo;

    /**
     * 封面图Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "photo")
    private String photoUrl;


    /**
     * 内容
     */
    private String content;

    private Date createTime;
}
